package com.jckl.foodathon.adapter;

import com.jckl.foodathon.fragments.BrandFragment;
import com.jckl.foodathon.fragments.StoreFragment;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

public class StoreTabsPagerAdapter extends FragmentPagerAdapter{

	public StoreTabsPagerAdapter(FragmentManager fm){
		super (fm);
	}
	
    @Override
    public Fragment getItem(int index) {
 
        switch (index) {
        case 0:
            return new StoreFragment();
        case 1:
        	return new BrandFragment();
        case 2:
            // Movies fragment activity
//            return new MoviesFragment();
        }
 
        return null;
    }
	
    @Override
    public int getCount() {
        return 2;
    }
}
